package org.jeecg.modules.demo.periodicwork.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
@Schema(description="配合部门待办周期性工作")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TobedonePeriodicWork implements Serializable {
    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private java.lang.String id;
    /**工作内容*/
    @Excel(name = "工作内容", width = 15)
    @Schema(description = "工作内容")
    private java.lang.String jobContent;
    /**质量要求*/
    @Excel(name = "质量要求", width = 15)
    @Schema(description = "质量要求")
    private java.lang.String qualityRequirements;
    /*配合部门*/
    @Excel(name = "配合部门", width = 15)
    @Dict(dictTable = "sys_depart where depart_name like '%部' or depart_name like '%处'", dicText = "depart_name", dicCode = "id")
    @Schema(description = "配合部门")
    private java.lang.String coopDepart;
    /**配合内容*/
    @Excel(name = "配合内容", width = 15)
    @Schema(description = "配合内容")
    private java.lang.String coopContent;
    /**配合部门任务状态*/
    @Excel(name = "配合部门任务状态", width = 15)
    @Schema(description = "配合部门任务状态")
    private java.lang.String coopDepartTaskstatus;
    /**周期单位*/
    @Excel(name = "周期单位", width = 15)
    @Dict(dicCode = "periodic_units")
    @Schema(description = "周期单位")
    private java.lang.String periodicUnits;
    /*数量*/
    @Excel(name = "数量", width = 15)
    @Dict(dicCode = "quantity")
    @Schema(description = "数量")
    private java.lang.String quantity;
    /**下次汇报时间*/
    @Excel(name = "下次汇报时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "下次汇报时间")
    private java.util.Date nextReportTime;
    /**是否生效*/
    @Excel(name = "是否生效", width = 15)
    @Dict(dicCode = "whether_effect")
    @Schema(description = "是否生效")
    private java.lang.String whetherEffect;
    /**责任部门*/
    @Excel(name = "责任部门", width = 15)
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Schema(description = "责任部门")
    private java.lang.String responseDepart;

}
